<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<style type="text/css">
	.weui-media-box_appmsg .weui-media-box__hd{
		width:4.5rem;
		height:4.5rem;
		line-height:4.5rem;
	}
	.weui-media-box{
		padding:5px;
	}
</style>
<div>
	<c:if test="${empty goods}">
		<div class="weui-panel_body" style="text-align: center;">
			<img alt="" src="<c:url value='/images/we/personCenter/null.png' />">
			<p style="margin: 5px 20px;color: #afafaf">更多产品陆续上架中...</p>
		</div>
	</c:if>
	<c:forEach var="good" items="${goods}">
		<div class="weui-panel weui-panel_access">
		  <div class="weui-panel__bd">
		    <a href="<c:url value='/wechat/ser/serIndex/goodDetail?goodId=${good.id}&fromWhere=service'/>" class="weui-media-box weui-media-box_appmsg goodDetail" data-goodid="${good.id}">
		      <div class="weui-media-box__hd">
		        <img class="weui-media-box__thumb" src="<c:url value='/images/we/ser/test.jpg' />">
		      </div>
		      <div class="weui-media-box__bd">
		        <p class="weui-media-box__desc" style="color:black;font-size:0.7rem;">${good.serviceGoodsName}</p>
		        <div class="money">
					<span style="color:red;font-size:0.8rem;">${good.goodsMaketPrice}</span>
					<span style="color:red;font-size:0.6rem;">
						<t:provider packageName="ser" enumClassName="GoodsCurrencyState" value="${good.goodsMaketCurrency}"/>
					</span>
					<span style="color:grey;padding-left:1rem;text-decoration:line-through;font-size:0.6rem;">
						原价：${good.goodsOriginalPrice}
						<t:provider packageName="ser" enumClassName="GoodsCurrencyState" value="${good.goodsOriginalCurrency}"/>
					</span>
				</div>
				<div>
					<span style="color:grey;font-size:0.7rem;">${good.goodStore.storeName}</span>
					<span style="color:grey;padding-left:2rem;font-size:0.7rem;">${good.goodStore.storeAddress}</span>
				</div>
		      </div>
		    </a>
		  </div>
		</div>
	</c:forEach>
</div>

